<?php foreach($categories as $category){?>
<?php $i=0;
	
	if(($category['news']))
	{
		
?>
<div class="box">
          <div class="box-heading"><?php echo $category['name'];?></div>
              <div class="box-content">
                <table width="100%"  border="0px" cellpadding="5" cellspacing="0">
                <tr valign="top">
                <?php  foreach($category['news'] as $news){
                    $i++;
                    if ($i==1){?>
                    	<td class="tin-trai">
                   	    	<a href="<?php echo $news['href'];?>"><img hspace="3" vspace="3" src="<?php echo $news['image'];?> " alt="" width="100" align="left" border="0" height="80" /></a>
                            <span class="tieude"><a href="<?php echo $news['href'];?>"><?php echo $news['title'];?></a></span><br />
                            <?php echo $news['summary'];?>
                        </td>
                            <?php 
                               
                            } ?> <?php if($i>1) { ?>                          
                        <?php if($i==2) { ?><td> <?php } ?>
                            <a href="<?php echo $news['href'];?>"> <?php echo $news['title'];?></a></br>
                        <?php }?>
                        
                              
                    <?php }?>
                     <div class=xem-tiep><a href="<?php echo $category['href']; ?>">xem tiếp>></a></div>
                     </td>   
                    </tr>
                </table>
            </div>
        </div>
<?php
	} 
}
?>